ocaml: Makefile: delete dependency files during make clean
authorGianni Tedesco <gianni.tedesco@citrix.com>
Thu, 28 Oct 2010 10:46:20 +0000 (11:46 +0100)
committerGianni Tedesco <gianni.tedesco@citrix.com>
Thu, 28 Oct 2010 10:46:20 +0000 (11:46 +0100)
Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/ocaml/Makefile.rules

index a4fb7c4868fc583f0baa56562647b1b02fc68412..53949841278435719a390dd91df9d032f14d5202 100644 (file)
@@ -45,7 +45,7 @@ ALL_OCAML_OBJ_SOURCES=$(addsuffix .ml, $(ALL_OCAML_OBJS))
        $(call quiet-command, $(OCAMLDEP) $(ALL_OCAML_OBJ_SOURCES) *.mli $o,MLDEP,)
 
 clean: $(CLEAN_HOOKS)
-       $(Q)rm -f *.o *.so *.a *.cmo *.cmi *.cma *.cmx *.cmxa *.annot $(LIBS) $(PROGRAMS) $(GENERATED_FILES) .ocamldep.make
+       $(Q)rm -f .*.d *.o *.so *.a *.cmo *.cmi *.cma *.cmx *.cmxa *.annot $(LIBS) $(PROGRAMS) $(GENERATED_FILES) .ocamldep.make
 
 quiet-command = $(if $(V),$1,@printf " %-8s %s\n" "$2" "$3" && $1)